package org.tong.validate.services.impl;

import org.springframework.stereotype.Service;
import org.tong.jpa.entities.Student;
import org.tong.validate.req.StudentReq;
import org.tong.validate.services.StudentService;

import java.util.Date;

/**
 * @author
 * @date 2022-08-11 17:33
 */
@Service("validService")
public class StudentServiceImpl implements StudentService {
    @Override
    public String find(String name) {
        return "student find service " + new Date();
    }

    @Override
    public String find(StudentReq student) {
        return student.toString();
    }
}
